//
//  SetUpTableViewCell.m
//  afn
//
//  Created by mac on 2018/5/10.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "SetUpTableViewCell.h"

@implementation SetUpTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)creatView{
    self.backgroundColor=_LightGrey;
    UIView *beiJingView=[UIView new];
    [self addSubview:beiJingView];
    [beiJingView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(0);
        make.bottom.mas_equalTo(-10);
    }];
    beiJingView.backgroundColor=[UIColor whiteColor];
    
    UIView *userView=[UIView new];
    [beiJingView addSubview:userView];
    [userView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.left.mas_equalTo(0);
        make.height.mas_equalTo(50);
    }];
    
    UILabel *userLabel=[UILabel new];
    [userView addSubview:userLabel];
    [userLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.centerY.mas_equalTo(0);
    }];
    userLabel.text=@"个人信息";
    userLabel.font=[UIFont systemFontOfSize:16];
    userLabel.textColor=ColorWithRGB(49, 49, 49);
    
    UIImageView *jianTouimage=[UIImageView new];
    [userView addSubview:jianTouimage];
    [jianTouimage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.centerY.mas_equalTo(0);
        make.width.mas_equalTo(9);
        make.height.mas_equalTo(18/4*3);
    }];
    jianTouimage.image=[UIImage imageNamed:@"arrow_right_black"];
    
    UIView *xianView=[UIView new];
    [beiJingView addSubview:xianView];
    [xianView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.right.mas_equalTo(-10);
        make.top.mas_equalTo(userView.mas_bottom);
        make.height.mas_equalTo(1);
    }];
    xianView.backgroundColor=_LightGrey;
    
    UIView *phoneView=[UIView new];
    [beiJingView addSubview:phoneView];
    [phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.bottom.left.mas_equalTo(0);
        make.height.mas_equalTo(50);
    }];
    
    UILabel *phoneLabel=[UILabel new];
    [phoneView addSubview:phoneLabel];
    [phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.centerY.mas_equalTo(0);
    }];
    phoneLabel.text=@"手机号";
    phoneLabel.font=[UIFont systemFontOfSize:16];
    phoneLabel.textColor=ColorWithRGB(49, 49, 49);
    
    UIImageView *jianTouimage2=[UIImageView new];
    [phoneView addSubview:jianTouimage2];
    [jianTouimage2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.centerY.mas_equalTo(0);
        make.width.mas_equalTo(9);
        make.height.mas_equalTo(18/4*3);
    }];
    jianTouimage2.image=[UIImage imageNamed:@"arrow_right_black"];
    
    
    UILabel *phoneLabel2=[UILabel new];
    [phoneView  addSubview:phoneLabel2];
    [phoneLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(jianTouimage.mas_right).mas_equalTo(-7);
        make.centerY.mas_equalTo(0);
    }];
    phoneLabel2.text=@"181****8005";
    phoneLabel2.font=[UIFont systemFontOfSize:16];
    phoneLabel2.textColor=ColorWithRGB(149, 149, 149);

}
-(void)creatView2{
    self.backgroundColor=_LightGrey;
    UIView *beiJingView=[UIView new];
    [self addSubview:beiJingView];
    [beiJingView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(0);
        make.bottom.mas_equalTo(-10);
    }];
    beiJingView.backgroundColor=[UIColor whiteColor];
    
    UIView *userView=[UIView new];
    [beiJingView addSubview:userView];
    [userView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.left.mas_equalTo(0);
        make.height.mas_equalTo(50);
    }];
    
    UILabel *userLabel=[UILabel new];
    [userView addSubview:userLabel];
    [userLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.centerY.mas_equalTo(0);
    }];
    userLabel.text=@"通用";
    userLabel.font=[UIFont systemFontOfSize:16];
    userLabel.textColor=ColorWithRGB(49, 49, 49);
    
    UIImageView *jianTouimage=[UIImageView new];
    [userView addSubview:jianTouimage];
    [jianTouimage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.centerY.mas_equalTo(0);
        make.width.mas_equalTo(9);
        make.height.mas_equalTo(18/4*3);
    }];
    jianTouimage.image=[UIImage imageNamed:@"arrow_right_black"];
    
    UIView *xianView=[UIView new];
    [beiJingView addSubview:xianView];
    [xianView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.right.mas_equalTo(-10);
        make.top.mas_equalTo(userView.mas_bottom);
        make.height.mas_equalTo(1);
    }];
    xianView.backgroundColor=_LightGrey;
    
    UIView *phoneView=[UIView new];
    [beiJingView addSubview:phoneView];
    [phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.left.mas_equalTo(0);
        make.top.mas_equalTo(xianView.mas_bottom);
        make.height.mas_equalTo(50);
    }];
    
    UILabel *phoneLabel=[UILabel new];
    [phoneView addSubview:phoneLabel];
    [phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.centerY.mas_equalTo(0);
    }];
    phoneLabel.text=@"关于法之春";
    phoneLabel.font=[UIFont systemFontOfSize:16];
    phoneLabel.textColor=ColorWithRGB(49, 49, 49);
    
    UIImageView *jianTouimage2=[UIImageView new];
    [phoneView addSubview:jianTouimage2];
    [jianTouimage2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.centerY.mas_equalTo(0);
        make.width.mas_equalTo(9);
        make.height.mas_equalTo(18/4*3);
    }];
    jianTouimage2.image=[UIImage imageNamed:@"arrow_right_black"];
    
    
    UIView *xianView2=[UIView new];
    [beiJingView addSubview:xianView2];
    [xianView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.right.mas_equalTo(-10);
        make.top.mas_equalTo(phoneView.mas_bottom);
        make.height.mas_equalTo(1);
    }];
    xianView2.backgroundColor=_LightGrey;
    
    UIView *phoneView2=[UIView new];
    [beiJingView addSubview:phoneView2];
    [phoneView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.bottom.left.mas_equalTo(0);
        make.height.mas_equalTo(50);
    }];
    
    UILabel *phoneLabel2=[UILabel new];
    [phoneView2 addSubview:phoneLabel2];
    [phoneLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(10);
        make.centerY.mas_equalTo(0);
    }];
    phoneLabel2.text=@"关于法之春";
    phoneLabel2.font=[UIFont systemFontOfSize:16];
    phoneLabel2.textColor=ColorWithRGB(49, 49, 49);
    
    
    UIButton *phoneBtn=[UIButton new];
    [phoneView2 addSubview:phoneBtn];
    [phoneBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(0);
        make.centerY.mas_equalTo(0);
        make.width.mas_equalTo(40);
        make.height.mas_equalTo(50);
    }];
    [phoneBtn setImage:[UIImage imageNamed:@"ico-dianhua"] forState:0];
    
    UILabel *label2=[UILabel new];
    [phoneView2 addSubview:label2];
    [label2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(phoneBtn.mas_left).mas_equalTo(0);
        make.centerY.mas_equalTo(0);
    }];
    label2.textColor=ColorWithRGB(149, 149, 149);
    label2.font=[UIFont systemFontOfSize:16];
    label2.text=@"400-8888-8888";
    
}

@end
